package org.student.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;
import org.student.dao.IUserInfoDao;
import org.student.entity.PageInfo;
import org.student.entity.SysUser;
@Component("userInfoService")
public class IUserInfoService implements IUserInfoDao {
	
	private IUserInfoDao iUserInfoDao ;
	
	@Override
	public boolean checkUser(String userName, String password) throws Exception {
		this.iUserInfoDao.checkUser(userName, password) ;
		return false;
	}

	public IUserInfoDao getiUserInfoDao() {
		return iUserInfoDao;
	}
	
	@Resource(name="UserInfoImpl")
	public void setiUserInfoDao(IUserInfoDao iUserInfoDao) {
		this.iUserInfoDao = iUserInfoDao;
	}

	@Override
	public List<SysUser> getAllUser(PageInfo pageInfo) throws Exception {
		return this.iUserInfoDao.getAllUser(pageInfo) ;
	}

}
